package com.group525.cloudef.service.doctor;

import com.group525.cloudef.Dao.doctor.DiagnoseDao;
import com.group525.cloudef.Dao.doctor.UserInfo;
import com.group525.cloudef.Dao.doctor.reportRecord;
import com.group525.cloudef.common.CommonResult;
import com.group525.cloudef.entity.doctor.DUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group525.cloudef.entity.user.UHazard;
import com.group525.cloudef.entity.user.UImage;
import com.group525.cloudef.entity.user.UReport;
import com.group525.cloudef.entity.user.Uinfectious;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author group525
 * @since 2023-04-19
 */
public interface DUserService extends IService<DUser> {

    CommonResult<?> login(DUser doc);

    List<DUser> getDoctors(String area, String buwei);

    UserInfo info(String jobNum);

    CommonResult<?> uploadAvatar(MultipartFile file, HttpServletRequest httpServletRequest);

    List<DiagnoseDao> getPatient(Long doctor_id);

    CommonResult<?> createInfectious(Uinfectious uinfectious);
    CommonResult<?> submitHazard(UHazard uHazard);
    CommonResult<?> submitReport(UReport uReport);

    List<reportRecord> reportList();
    UReport getDiseaseInfo(Long reportNo);
    List<UImage> getImage(Long reportNo);
    CommonResult<?> updateReport(UReport uReport);

    List<String> getTitle();
    String getContent(String title);
}
